<!DOCTYPE html>
<html>
<head>
    <title>WidgetBase Smoke Test</title>
</head>
<body>
    <script src="../../../../build/yui/yui.js"></script>
    <script>
        YUI({
            coverage: ['widget-base'],
            filter: (window.location.search.match(/[?&]filter=([^&]+)/) || [])[1] || 'raw'
        }).use("test", "widget-base", function (Y) {
            // Don't use console, since it includes widget-htmlparser
            // which we want to exclude from this test.

            var suite = new Y.Test.Suite("WidgetBase");

            suite.add(new Y.Test.Case({
                name: "Basic Smoke Test",
                "should instantiate without widget-htmlparser present": function () {
                    var instance = new Y.Widget();
                    Y.Assert.isObject(instance);
                }
            }));

            Y.Test.Runner.add(suite);
            Y.Test.Runner.run();
        });
    </script>
</body>
</html>
